import { createApp } from 'vue'
const app = createApp(App)
import App from './App.vue'
// import store from './store'
import router from './router'



import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import utils from "./utils/index";
app.config.globalProperties= {
    $utils:utils
}

import axios from '@/api/https';

app.config.globalProperties= {
    $axios:axios
}

// 自动引入
import  "@/components/base/index";


import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import {createPinia} from 'pinia'
const pinia=createPinia()
app.use(pinia)

app.use(ElementPlus)
app.use(router)
app.mount('#app')


// vue add @vue/typescript  js转ts
// npm install vue-router@4.0.0-beta.13   router
// cnpm install vuex@next -S  vuex